package com.bussiness.xutai.service.impl;

import com.bussiness.xutai.bean.User;
import com.bussiness.xutai.mapper.UserMapper;
import com.bussiness.xutai.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User getUserByAccount(String account) {
        return userMapper.selectUserByAccount(account);
    }

    @Override
    public int getCount(String account) {
        return userMapper.selectCount(account);
    }

    @Override
    public boolean saveUser(User user) {
        return userMapper.insertUser(user);
    }
}
